import PropTypes from 'prop-types'
import React,{ memo }  from 'react';
import { ItemWrapper } from '@/components/longfor-item/style'

const LongForItem = memo((props) => {
  const {itemData} = props;
    return (
        <ItemWrapper>
            <div className="inner">
              <div className="inner-info">
                <img className='cover' src={ itemData.picture_url } alt=""/>
                <div className='bg-cover'></div>
                <div className='info'>
                  <div className='city'>{ itemData.city }</div>
                  <div className='price'>均价 { itemData.price }</div>
                </div>
              </div>
            </div>
        </ItemWrapper>
    );
});

LongForItem.propTypes = {
  itemData:PropTypes.object
}
export default LongForItem;
